<div class="wrapper-xs" ng-init="vm.init()">
    <div class="panel panel-default">
        <div class="panel-heading font-bold">产品列表</div>
        <div class="panel-body">
            <a ng-click="vm.add()" class="btn btn-info btn-sm m-l-sm">新增</a>
            <a ng-click="vm.update()" ng-disabled="!vm.row.checked" class="btn btn-success btn-sm m-l-sm">更新</a>
        </div>
        <div class="table-responsive">
            <table ng-table="vm.tableParam"
                   class="table table-condensed table-bordered table-hover table-striped">
                <tbody>
                <tr ng-repeat="row in $data track by $index">
                    <td title="'ID'" sortable="'id'" align="center" width="10px">{{row.id}}</td>
                    <td title="'产品名称'" sortable="'name'">{{row.name}}</td>
                    <td title="'货号'" sortable="'itemNo'">{{row.itemNo}}</td>
                    <td title="'产品规格'" sortable="'size'">{{row.size}}</td>
                    <td title="'销售价格'" sortable="'saleAmt'">{{row.saleAmt}}</td>
                    <td title="'单位'" sortable="'unit'">{{row.unit}}</td>
                    <td title="'更新时间'" sortable="'updateTime'">{{row.updateTime|date:'yyyy-MM-dd hh:ss:mm'}}</td>
                    <td title="'操作'">
                        <button class="btn btn-xs btn-success">开单</button>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>

<div ng-include="'views/product/productAdd.html'" id="addInfo"
 style="display: none;width: 900px;"></div>
